package com.bestcem.xm.ticket.controller.vo.ticket.template;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 级联数据VO
 *
 * @author ympan <yuming.pan@idiaoyan.com>
 * @version v2.3
 * @date 2021/9/3 10:53
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ParseCascadeExcelVO {

    /**
     * 级联选项数据
     */
    private List<Detail> details;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Option {
        /**
         * 级联数据id
         */
        private Integer id;

        /**
         * 级联数据父id
         */
        private Integer pid;

        /**
         * 级联数据内容
         */
        private String value;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Detail {
        /**
         * 级联层级下的选项
         */
        private List<Option> options;

        /**
         * 级联层级
         */
        private Integer level;
    }
}
    